package com.hzeport.bgs22emduty.inbound.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzeport.bgs22emduty.dto.BasePersonInfoLSDTO;
import com.hzeport.bgs22emduty.dto.BasePersonInfoLSVO;
import com.hzeport.bgs22emduty.entity.BasePersonInfo;
import com.hzeport.bgs22emduty.service.BasePersonInfoService;
import com.hzeport.bgs22emduty.common.base.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@AllArgsConstructor
@RequestMapping("/basepersoninfols")
@Api(value = "basepersoninfols", tags = "basepersoninfols管理")
@Slf4j
public class BasePersonInfoLSController {

    private final BasePersonInfoService basePersonInfoService;

    @ApiOperation(value = "分页查询", notes = "分页查询")
    @PostMapping("/page")
    public BaseResult<Page<BasePersonInfoLSVO>> getBasePersonInfoPage(@RequestBody BasePersonInfoLSDTO dto) {
        return basePersonInfoService.getPage(dto);
    }

}
